package com.eagle.scali.contentcenter.configuration;

import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;
import ribbonconfiguration.RibbonConfiguration;

/**
 * 配置自定义的全局/局部的ribbon负债均衡策略
 */
@Configuration
//指定了访问user-center这个微服务时采用的负载均衡策略
@RibbonClient(name = "user-center", configuration = RibbonConfiguration.class)
//全局设置负载均衡策略
//@RibbonClients(defaultConfiguration = RibbonConfiguration.class)
public class UserCenterRibbonConfiguration {
}
